/**    
 * Project name:ads-mail
 *
 * Copyright Pzoomtech.com 2011, All Rights Reserved.
 *  
 */
package com.topsoft.email.model;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mvc.core.model.ModelObject;
import com.sun.istack.Nullable;
import com.topsoft.email.util.enums.UserState;



//发件人信息

@Entity
@Table(name = "t_mail_user")
public class MailUser extends ModelObject {

    @Id
	private  String  id;  //唯一标识
	
	private  String  userName;
	
	private  String  password;
	
	@Transient
	private  String  newPassword;
	
	@Enumerated(EnumType.STRING)
	private UserState userStatus;   //  用户状态
	
	private String platformName; //平台
	
	//sendCloud 虚拟发件人   名称和 地址
	private String virtualName = "";
	private String virtualAddress = "";
	
	//邮件服务器
	private  String protocol = "smtp";
	private  String host = "smtp.exmail.qq.com";// 连接发送方的SMTP服务器
	
	private   int   port = 465;// 连接发送方的SMTP服务器
    private  String smtpUserName = "";
	private  String smtpPassword = "";
	
	
	
	
	
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNewPassword() {
		return newPassword;
	}
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	public UserState getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(UserState userStatus) {
		this.userStatus = userStatus;
	}
	public String getPlatformName() {
		return platformName;
	}
	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}
	
	public String getSmtpUserName() {
		return smtpUserName;
	}
	public void setSmtpUserName(String smtpUserName) {
		this.smtpUserName = smtpUserName;
	}
	public String getSmtpPassword() {
		return smtpPassword;
	}
	public void setSmtpPassword(String smtpPassword) {
		this.smtpPassword = smtpPassword;
	}
	public String getProtocol() {
		return protocol;
	}
	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getVirtualName() {
		return virtualName;
	}
	public void setVirtualName(String virtualName) {
		this.virtualName = virtualName;
	}
	public String getVirtualAddress() {
		return virtualAddress;
	}
	public void setVirtualAddress(String virtualAddress) {
		this.virtualAddress = virtualAddress;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
